<include file="public:head" />
  <!-- 首页导航下搜索 -->
  <div class="fly-case-header">
    <img class="fly-case-banner" src="__PUBLIC__/theme/blueideal/images/toplogo.png">
      <form action="" method="get" class="fly-extend-banner-search">
      <input type="hidden" name="g" value="home" />
      <input type="hidden" name="m" value="search" />
      <input type="hidden" name="a" value="index" />
      <input name="lm" value="0" id="t_doc"  type="hidden">
      <div class="layui-inline">
        <input placeholder="请输入文档关键字" name="searchword" autocomplete="off" value="" class="layui-input">
      </div>
      <button class="layui-btn"><i class="layui-icon">&#xe615;</i></button>
    </form>
     <p class="fly-case-year">中国最全的 核能行业资料库 共有<span style="color:#FFB800;">&nbsp;{$totaldocnum}&nbsp;</span>个文档</p>
  </div>
  <!-- 首页搜索结束 -->


  <div class="fly-main mtop20" style="overflow: hidden;"> 
   <!-- 幻灯片 -->
   <div class="fly-tab-border fly-case-tab"> 
    <div class="layui-carousel" id="slide"> 
     <div carousel-item=""> 
      <volist name="slide" id="v" key='k'>{$slide.url}
      <div><a href="{$v.url}" target="_blank"><img src="{:C('wkcms_site_url')}{:upload($v['img'], 'slide')}" alt="{$v.name}" class="img-responsive itm-banner" data-adaptive-background='{$k}'></a></div> 
      </volist>
     </div> 
    </div> 
   </div> 
  <!-- 广告 -->
    <div id="nonegg" style="margin-top:5px">
      <div class='banner-wrap'>{:R('advert/index', array(9), 'Widget')}</div>
    </div>
  <!-- 广告 end-->
   <!-- 幻灯片结束 -->
   <!-- 热门专辑开始 -->
   <div class="layui-tab layui-tab-brief"> 
    <ul class="layui-tab-title"> 
     <li class="layui-this"><a href="" class="font16">热门专辑</a></li> 
     <li style="float: right;"><a href="{:U('zj/index')}" target="_blank" >全部专辑</a></li>
    </ul> 
   </div> 
   <empty name="tjzj">
    <div class="fly-none">没有相关数据</div>
   </empty>
   <ul class="fly-zj-list"> 
    <volist name="tjzj" id="vo" offset="0" length='4'>
    <li data-id="123"> <a class="fly-zj-img" href="{:U('zj/zjinfo',array('id'=> $vo['id']))}" target="_blank"> <img src="{:C('wkcms_site_url')}/data/upload/zj/{$vo.img}" /> <cite class="layui-btn layui-btn-primary layui-btn-small">查看</cite> </a> <h3><a href="{:U('zj/zjinfo',array('id'=> $vo['id']))}" target="_blank">{$vo.title}</a></h3> 
     <div class="fly-zj-info"> 
      <volist name="vo['zhuanji']" id="vo1">
      <p><a class="fly-zj-nums fly-zj-active" href="{:U('doc/doccon',array('id'=>$vo1['id']))}"  target="_blank" style=" padding:0 5px;"><i class="ic ic-{$vo1.ext|strtolower}"></i>{$vo1.title|msubstr=###,0,15}</a><span style="float: right;color: #999"><i class="iconfont xico" title="人气">&#xe60b;</i>{$vo1.hits}</span></p> 
      </volist>
     </div> 
   </li> 
   </volist> 
   </li> 
     
   </ul> 
   <!-- 热门专辑开始结束 -->
   <!-- 最新文档开始 -->
   <div class="layui-tab layui-tab-brief"> 
    <ul class="layui-tab-title"> 
     <li class="layui-this"><a href="" class="font16">最新上传</a></li> 
     <li style="float: right;"><a href="{:U('doc/doclist')}" target="_blank" >全部文档</a></li>
    </ul> 
   </div> 
   <ul class="fly-case-list"> 
    <volist name="indexDocList" id="vo" >
    <li > 
      <a class="fly-case-img" href="{:U('doc/doccon',array('id'=>$vo['id']))}" target="_blank"> <img src="{:docimg($vo['model'],$vo['id'])}"/> <cite class="layui-btn layui-btn-primary layui-btn-small">查看</cite> </a> 
      <h3><i class="ic ic-{$vo.ext|strtolower}"></i><a href="{:U('doc/doccon',array('id'=>$vo['id']))}" target="_blank">{$vo.title|msubstr=###,0,14}</a></h3> 
     <div class="fly-case-info"> 
      <p class="layui-elip" style="font-size: 12px;"><span style="color: #666;">{$vo.add_time|fdate}</span> <span style="float: right;"><i class="iconfont xico" title="人气">&#xe60b;</i>{$vo.hits}</span>
      </p> 
     </div> 
    </li> 
    </volist>
   </ul> 
   <!-- 最新文档结束 -->
   <!-- 热门文档开始 -->
   <div class="layui-tab layui-tab-brief"> 
    <ul class="layui-tab-title"> 
     <li class="layui-this"><a href="" class="font16">最多浏览</a></li> 
     <li style="float: right;"><a href="{:U('doc/doclist')}" target="_blank" >全部文档</a></li>
    </ul> 
   </div> 
   <ul class="fly-case-list"> 
    <volist name="indexhitsDocList" id="vo" >
    <li > 
      <a class="fly-case-img" href="{:U('doc/doccon',array('id'=>$vo['id']))}" target="_blank"> <img src="{:docimg($vo['model'],$vo['id'])}"/> <cite class="layui-btn layui-btn-primary layui-btn-small">查看</cite> </a> 
      <h3><i class="ic ic-{$vo.ext|strtolower}"></i><a href="{:U('doc/doccon',array('id'=>$vo['id']))}" target="_blank">{$vo.title|msubstr=###,0,14}</a></h3> 
     <div class="fly-case-info"> 
      <p class="layui-elip" style="font-size: 12px;"><span style="color: #666;">{$vo.add_time|fdate}</span> <span style="float: right;"><i class="iconfont xico" title="人气">&#xe60b;</i>{$vo.hits}</span>
      </p> 
     </div> 
    </li> 
    </volist>
   </ul> 
   <!-- 热门文档结束 -->
   <!-- 贡献榜 -->
   <div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
    <h3 class="fly-panel-title font16">贡献榜</h3>
    <dl>
      <wkcms:user type="lists" how="doc" order="roleid desc">
      <volist name="data['list']" id="vo" offset="0" length="13">
        <dd><a href="{:U('member/mydoclist',array('uid'=>$vo['uid']))}" target="_blank"><img src="{:C('wkcms_site_url')}{$vo['uid']|getavatar}"><cite>{$vo['uid']|getusername}</cite><i>上传{$vo['uid']|mydoccount}个</i></a></dd>
      </volist>
      </wkcms:user>
       
    </dl>
  </div>
  <!-- 贡献榜结束 -->
  <!-- 新闻开始 -->
  <div class="layui-row layui-col-space10">
    <div class="layui-col-md6">
    <dl class="fly-panel fly-list-one">
      <dt class="fly-panel-title">最新资讯</dt>
      <empty name="newslist">
      <div class="fly-none">没有相关数据</div>
      </empty>
      <volist name="newslist" id="vo" >
      <li> <a href="{:U('news/content',array('id'=>$vo['id']))}"  target="_blank" >{$vo.title} </a> <span><i class="iconfont icon-liulanyanjing" style="margin-right: 3px;"></i></i>{$vo.hits}</span> </dd>
      </volist> 
    </li>
  </div>
  <div class="layui-col-md6">
    <dl class="fly-panel fly-list-one">
      <dt class="fly-panel-title">最热资讯</dt>
      <empty name="newshits">
      <div class="fly-none">没有相关数据</div>
      </empty>
      <volist name="newshits" id="vo" >
      <li> <a href="{:U('news/content',array('id'=>$vo['id']))}"  target="_blank" >{$vo.title} </a> <span><i class="iconfont icon-liulanyanjing" style="margin-right: 3px;"></i></i>{$vo.hits}</span> </li>
      </volist>
    </dl>
  </div>
</div>
  <!-- 新闻结束 -->
  <!-- 热门标签 -->
  <div class="fly-panel fly-link">
      <h3 class="fly-panel-title">热门标签</h3>
      <dl class="d_tags">
      <empty name="taglist">
      <div class="fly-none" style="min-height:50px;padding-top: 30px;">没有相关数据</div>
      </empty>
      <volist name="taglist" id="vo">
         <a href="{:U('search/index',array('lm'=>'0','searchword'=>$vo['name']))}">{$vo.name} ({$vo.count})</a>
      </volist>
      </dl>
    </div>
  <!-- 热门标签结束 -->
  <!-- 友情链接 -->
   <div class="fly-panel fly-link">
      <h3 class="fly-panel-title">友情链接</h3>
      <dl class="fly-panel-main">
      <empty name="flink">
      <div class="fly-none" style="min-height:50px;padding-top: 30px;">没有相关数据</div>
      </empty>
      <volist name="flink" id="vo">
          <dd> <a href="{$vo.url}" target="_blank" alt="{$vo.name}" class="flink">{$vo.name}</a></dd>
      </volist>
      </dl>
    </div>
  <!-- 友情链接结束 -->
  <!-- 广告 -->
    <div id="nonegg" style="margin-top:5px">
      <div class='banner-wrap'>{:R('advert/index', array(4), 'Widget')}</div>
    </div>
  <!-- 广告 end-->
  </div> 
  
<include file="public:footer" />
<script>
  var ggstatus = "{:C('wkcms_gonggao_status')}";
  if (ggstatus == 1) {
    layui.use(['form' ,'jquery'], function(){  
    var form = layui.form , $ = layui.jquery ;
   
  layer.open({
          type: 1
          ,title: false
          ,closeBtn: false
          ,area: '300px;'
          ,shade: 0.8
          ,id: 'LAY_layuipro'
          ,btn: [ '我知道了']
          ,btnAlign: 'c'
          ,moveType: 1 //拖拽模式，0或者1
          ,content: '{:C('wkcms_gonggao_protocol')}'
          ,success: function(layero){
          }
        }); 

  });
  }
</script>
<script>
  layui.use('carousel', function(){
  var carousel = layui.carousel;
  //建造实例
  carousel.render({
    elem: '#slide'
    ,width: '100%' //设置容器宽度
    ,arrow: 'always' //始终显示箭头
    ,height:'200px'
    //,anim: 'updown' //切换动画方式
  });
});
 
</script>  
<script>
layui.config({
  version: "3.0.0"
  ,base: '__PUBLIC__/theme/blueideal/mods/' //这里实际使用时，建议改成绝对路径
}).extend({
  fly: 'index'
}).use('fly');
</script>
